<#macro page >
<div id="sidebar">
		
	<div class="widget widget_search">
		<form method="get" id="sidebarsearch" action="http://www.google.com/search" >
			<label class="hidden" for="s">Search for:</label>
			<div>
				<input type="hidden" name="sitesearch" value="wendyeq.appspot.com">
				<input type="hidden" name="tbo" value="1">
				<input type="text" name="q" value="" >
				<input type="submit" id="searchsubmit" value="Search" /> 
			</div>
		</form>	
		
	</div>
	
	<div class="linktome">
	
	<span ><a href="/admin/"><img src="/images/email.png" alt="email" /></a></span>
	<p></p>
	</div>
	<div id="category" class="widget widget_categories">
		<h4 class="widgettitle">Categories</h4>
		<ul>
		<#if (categorys?size>0)>
			<span>
			<#list categorys as cat>
			<li><a href="/category/${cat.name}/1/" title='${cat.name}'>${cat.name}(${cat.count})</a></li>
			</#list>	
			</span>
		<#else>	
			<li>No Category</li>
		</#if>
		
		</ul>
	</div>

<style type="text/css">
		#tag-cloud{
			clear:both;
			list-style:none;
		}
		#tag-cloud a{
			text-decoration:none;
			border-bottom:1px solid #ccc;	
		}

		.t1{font-size:80%; }
		.t2{font-size:100%; }
		.t3{font-size:120%; }
		.t4{font-size:140%; }
		.t5{font-size:160%; }
		.t6{font-size:180%; }
</style>
	
	<div id="tags" class="widget widget_tags">
		<h4 class="widgettitle">Tags</h4>	
		<#if (tags?size>0)>
		<span>	
		<#list tags as tag>
		<span id="tag-cloud">
	    <#if (tag.articles?size < 1)>
	    <a href="/tags/${tag.name}/1/" class="t1" title="${tag.name}(${tag.articles?size})">${tag.name}&nbsp</a>
	    <#elseif (tag.articles?size < 3)>
	    <a href="/tags/${tag.name}/1/" class="t2" title="${tag.name}(${tag.articles?size})">${tag.name}&nbsp</a>
	    <#elseif (tag.articles?size < 5)>
	    <a href="/tags/${tag.name}/1/" class="t3" title="${tag.name}(${tag.articles?size})">${tag.name}&nbsp</a>
	    <#elseif (tag.articles?size < 8)>
	    <a href="/tags/${tag.name}/1/" class="t4" title="${tag.name}(${tag.articles?size})">${tag.name}&nbsp</a>
	    <#elseif (tag.articles?size < 15)>
	    <a href="/tags/${tag.name}/1/" class="t5" title="${tag.name}(${tag.articles?size})">${tag.name}&nbsp</a>
	    <#else >
	    <a href="/tags/${tag.name}/1/" class="t6" title="${tag.name}(${tag.articles?size})">${tag.name}&nbsp</a>
	    </#if>
	    </span>
	    </#list>
	    </span>
		<#else>	
		<ul>
			<li>No Tags</li>
		</ul>
		</#if>
	</div>
	
	<div id="archive" class="widget widget_archive">
		<h4 class="widgettitle">Archives</h4>		
		<ul>
		<#if (archives?size>0)>
			<span>
			<#list archives as arch>
			<li><a href='/archive/${arch.name}/1/' title='${arch.name}'>${arch.name}(${arch.count})</a></li>
			</#list>
			</span>
		<#else>	
			<li>No Archive</li>
		</#if>
		
		</ul>
	</div>
	
	<div id="recent-comments" class="widget widget_recent_comments">	
		<h4 class="widgettitle">Latest Comments</h4>			
		<ul id="recentcomments">
		<#if (comments?size>0)>
			<span>
			<#list comments as com>
			<li class="recentcomments"><a href='/article/${com.article.createdTime?string("yyyy/MM/dd")}/${com.article.alias}/' class='url'>${com.name}</a> Post on <a href="/article/${com.article.createdTime?string("yyyy/MM/dd")}/${com.article.alias}/">${com.article.title}</a></li>
			</#list>
			</span>
		<#else>	
			<li>No Comment</li>
		</#if>
		</ul>
	</div>
	
</div>
</#macro>